package shiyanliu;
import java.io.*;

public class Test implements Serializable{
    public static void main(String[] args) {
        Student s1 = new Student(1001, "小李", "男");
        Student s2 = new Student(1002, "小王", "女");
        Teacher t1 = new Teacher(2001, "李老师", "男");
        Teacher t2 = new Teacher(2001, "王老师", "女");
        Course c1 = new Course(20000703, "高等数学", t1, "8:00-9:40", "302");
        Course c2 = new Course(20020809, "离散数学", t2, "13:30-15:10", "203");

        s1.selectclass(c1);
        System.out.println(c1);

        System.out.println("============");

        s2.selectclass(c1);
        System.out.println(c1);

        System.out.println("============");

        s2.selectclass(c2);
        System.out.println(c1);
        s2.selectclass(c1);

        System.out.println(c2);

        System.out.println("============");
        s2.selectclass(c2);
        System.out.println(c1);
    }

}